package cn.easybuy.dao.order;

import cn.easybuy.entity.Order;
import cn.easybuy.entity.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {
    int add(Order order);
    List<Order> getOrderList(@Param("userId") Integer userId,
                               @Param("from") Integer currentPageNo,
                               @Param("pageSize") Integer pageSize);
    int getOrderCountByUserId(@Param("userId") Integer userId);
}
